<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:p="http://primefaces.org/ui"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
	<title><ui:insert name="pagetitle">
			<h:outputText value="#{language.loginPageTitle}" />
		</ui:insert></title>
	<h:outputStylesheet name="style.css" library="css" />
	<h:outputScript name="pt_BR.js" library="locales" />
</h:head>
<h:body style="background: #d4d4d4;">
	<h:form prependId="false">
		<p:panel id="loginPanel" header="#{language.loginPanelTitle}"
			style="width:500px;margin: 100px auto;">
			<p:messages globalOnly="true" />
			<h:panelGrid columns="3">
				<h:outputLabel value="#{language.loginUser}" for="login" />
				<p:inputText id="login" required="true" binding="#{loginController.inputUser}"
					requiredMessage="#{language.msgLoginUserRequired}" />
				<p:message id="loginMessage" for="login" />

				<h:outputLabel value="#{language.loginPass}" for="pass" />
				<p:password id="pass" required="true" binding="#{loginController.inputPassword}"
					requiredMessage="#{language.msgLoginPassRequired}" />
				<p:message id="passMessage" for="pass" />
			</h:panelGrid>
			<p:commandButton id="submitButton" value="#{language.loginSigin}"
				update="loginPanel" action="#{loginController.login}"/>
		</p:panel>
	</h:form>
</h:body>
</html>